﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace CdhpyScheduler.WebHost.Models
{
    //[Guid("AD2FEF0C-A1A8-4980-9F6C-2C9119AB96F9")]
    public class JobAPIModel
    {
        [Required]
        public string jobKey_name { get; set; }

        public string jobKey_group { get; set; }

        /// <summary>
        /// 1: time interval
        /// 2: daily
        /// </summary>
        public int interval_type { get; set; }

        public int interval_days { get; set; }

        [Range(0,24)]
        public int interval_hours { get; set; }

        [Range(0, 60)]
        public int interval_minutes { get; set; }

        [Range(0, 60)]
        public int interval_seconds { get; set; }

        [Required]
        public string url { get; set; }

        public string http_method { get; set; }

        public int repeate_count { get; set; }

        public string remark { get; set; }
    }
}